package com.example.administrator.kaohedemo.Action;

/**
 * Created by Administrator on 2016/6/21.
 */
public class CourseListAction extends ActionCreator{

    private static CourseListAction creator;

    public static CourseListAction  getInstense(){
        if (creator==null){
            creator=new CourseListAction();
        }
        return creator;
    }

    public void SendItemClick(String type,int position){
        dispatcher.dispatch(type,Actions.CourseListActions.KEY_ITEM_SELECT,position);
    }

    public void SendPopClick(String type,String id){
        dispatcher.dispatch(type,Actions.CourseListActions.KEY_ITEM_SELECT,id);
    }

    public void SendItemDestoryClick(){
        dispatcher.dispatch(Actions.CourseListActions.TYPE_TAGER_DESTORYONCLICK);
    }

    public void SendResultFromHttp(String type,String key,String value){
        dispatcher.dispatch(type,key,value);
    }

    public void SendPopDismiss(){
        dispatcher.dispatch(Actions.CourseListActions.TYPE_POP_DISMISS);
    }
}
